#ifndef CINGREDIENTNUTRITION_H
#define CINGREDIENTNUTRITION_H

#include "cobject.h"
namespace cooking {

class CIngredientNutrition : public CObject
{
    Q_OBJECT
    Q_PROPERTY(int ingredientId READ ingredientId WRITE setIngredientId NOTIFY ingredientIdChanged)
    Q_PROPERTY(int nutritionId READ nutritionId WRITE setNutritionId NOTIFY nutritionIdChanged)
    Q_PROPERTY(double ingredientQuantity READ ingredientQuantity WRITE setIngredientQuantity NOTIFY ingredientQuantityChanged)
    Q_PROPERTY(double nutritionQuantity READ nutritionQuantity WRITE setNutritionQuantity NOTIFY nutritionQuantityChanged)
public:
    CIngredientNutrition();

    int ingredientId();
    void setIngredientId(int ingredientId);

    int nutritionId();
    void setNutritionId(int nutritionId);

    double ingredientQuantity();
    void setIngredientQuantity(double quantity);

    double nutritionQuantity();
    void setNutritionQuantity(double quantity);

signals:
    void ingredientIdChanged();
    void nutritionIdChanged();
    void ingredientQuantityChanged();
    void nutritionQuantityChanged();

private:
    int m_ingredient_id;
    int m_nutrition_id;
    double m_ingredient_quantity;
    double m_nutrition_quantity;
};
} // namespace cooking
#endif // CINGREDIENTNUTRITION_H
